package com.mirae.controller;

import java.util.Locale;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mirae.member.MemberService;

@Controller
@RequestMapping(value="/member")
public class MemberController {
	
	private static final Logger logger = LoggerFactory.getLogger(MemberController.class);

//	@Autowired
//	private MemberService memberService;	

	@RequestMapping(value="/list")
	public String testJsp(Model model){
		return "member/list";
	}	

	@RequestMapping(value="/view")	
	public String memberView(Locale locale, Model model){        
        logger.info("Welcome home! the client locale is "+ locale.toString());
		return "member/view";
	}
	
	/*
	@RequestMapping(value="/view")	
	public String memberView(Locale locale, Model model){
        logger.info("Welcome home! the client locale is "+ locale.toString());
        model.addAttribute("val", memberService.getMember() );
        
		return "member/view";
	}	
	
	
	@RequestMapping(value="/view")	
	public String memberView(Model model){        
		return "member/view";
	}
	*/

}